package com.hulk.ratel.component;

import com.hulk.ratel.constant.Constants;
import lombok.experimental.UtilityClass;

/**
 * @Author: hulk
 * @E-mail: 29572320@qq.com
 * @Date: Create in 2019-05-13 01:36
 * @Version: 1.0.0
 * @Modify by:
 * Class description
 */
@UtilityClass
public class RS {

    public boolean ok(R r ){
        return success( r );
    }
    public boolean success(R r ){
        return Constants.SUCCESS==r.getCode();
    }

}
